package com.example.xpvideo.entity.res;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * @author : 洪俊新
 * @date : 2021/9/14 16:27
 * @description:
 */
public class PhpSecondComment {

    /**
     * 主键
     * 评论id
     * isnull 1
     */
    private Long id;

    /**
     * 评论人userId
     * isnull 0
     */
    private Long userId;
    /**
     * 被回复的评论用户id
     * isnull 0
     */
    private String replyCommentUserId;
    /**
     * 评论等级[ 1 一级评论 默认 ，2 二级评论]
     * isnull 0
     */
    private Integer commentLevel;
    /**
     * 评论的内容
     * isnull 0
     */
    private String content;

    /**
     * 点赞数
     * isnull 0
     */
    private Integer praiseNum;

    /**
     * 创建时间
     * isnull 0
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;
    /**
     * 评论者的名字
     */
    private String nickname;
    /**
     * 被评论者的名字
     */
    private String replyNickname;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getReplyCommentUserId() {
        return replyCommentUserId;
    }

    public void setReplyCommentUserId(String replyCommentUserId) {
        this.replyCommentUserId = replyCommentUserId;
    }

    public Integer getCommentLevel() {
        return commentLevel;
    }

    public void setCommentLevel(Integer commentLevel) {
        this.commentLevel = commentLevel;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getPraiseNum() {
        return praiseNum;
    }

    public void setPraiseNum(Integer praiseNum) {
        this.praiseNum = praiseNum;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getReplyNickname() {
        return replyNickname;
    }

    public void setReplyNickname(String replyNickname) {
        this.replyNickname = replyNickname;
    }
}
